2007-01-05 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmenu.c (gtk_menu_paint): Take the scroll arrow into
account when drawing the background. (#393166, Benjamin Berg)
svn path=/trunk/; revision=17084
+2007-01-05 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/gtkmenu.c (gtk_menu_paint): Take the scroll arrow into
+ account when drawing the background. (#393166, Benjamin Berg)
+
2007-01-05 Behdad Esfahbod <behdad@gnome.org>
* gtk/gtklabel.c (get_layout_location): Fix broken width computation,
}
else if (event->window == menu->bin_window)
{
+ gint y = -border_y + menu->scroll_offset;
+
+ if (menu->upper_arrow_visible && !menu->tearoff_active)
+ y -= scroll_arrow_height;
+
gtk_paint_box (widget->style,
menu->bin_window,
GTK_STATE_NORMAL,
GTK_SHADOW_OUT,
NULL, widget, "menu",
- - border_x, menu->scroll_offset - border_y,
+ - border_x, y,
width, height);
}
}